
let apiUrl = 'https://api.yaopeixun.wang/';
let apiUrlV2 = 'https://app.yaopeixun.wang/api/';

if(wx.getSystemInfoSync().platform == 'devtools') {
  apiUrl = 'http://api.zpx.net/';
  apiUrlV2 = 'http://www.zpx.net/api/';
}

var urls = {
  apiUrl: apiUrl,
  apiUrlV2: apiUrlV2,
  websocketUrl: 'wss://www.yaopeixun.wang:9502',
  zhaopeixun:apiUrl,//找培训
  allselect:apiUrl+'subject,list',//上报机构选项
  saveinst:apiUrl+'school,save', //机构保存
  saveTeacher:apiUrl+'teacher,save',//保存教师
  uploadFile: apiUrl+'file,upload', //保存图片
  bannerUrl:apiUrl+'banner,list',//首页顶部banner
  schoolUrl: apiUrl+'school,info', //机构详情
  schoolList: apiUrl+'school,list', //机构详情
  schoollearn: apiUrl+'school,learnedList', //机构学过的人
  schoolnear: apiUrl+'school,near', //附近机构
  teacherUrl: apiUrl+'teacher,info', //教师详情
  teacherList: apiUrl+'teacher,list', //教师列表
  teacherAll:apiUrl+'teacher,all', //教师详情页
  teacherlearn: apiUrl+'teacher,learnedList', //机构学过的人
  addClasstype: apiUrl+'course,type', //课程分类
  courseList: apiUrl+'course,list', //课程列表
  courseSave: apiUrl+'course,save', //课程保存
  courseInfo: apiUrl+'course,info', //课程详情
  courselearned:apiUrl+'course,learnedList',//学过的人
  teacherlearned: apiUrl+'teacher,learnedList',//教师主页学过的人
  schoollearned: apiUrl+'school,learnedList',//机构主页学过的人
  studentGrade: apiUrl+'student,type', //年级
  studentSave:apiUrl+'student,save', //保存学生
  allschool:apiUrl+'school,all', //所有机构
  brand:apiUrl+'school,brand' , //连锁品牌
  statistics: apiUrl+'summary,list', //统计列表
  stadetail: apiUrl+'school,summary', //统计列表
  saveCourse: apiUrl+'remark,saveCourse', //保存课程评价
  saveSchool: apiUrl+'remark,saveSchool', //保存机构评价
  saveTeacherscore: apiUrl+'remark,saveTeacher', //保存教师评价
  orderlist: apiUrl+'order,list', //订单列表
  ordersign: apiUrl+'order,sign', //订单支付
  orderadd: apiUrl+'order,add', //保存订单
  orderinfo: apiUrl+'order,info', //订单详情
  coursehot: apiUrl+'course,hot', //首页课程列表
  promotion: apiUrl+'promotion,mine', //我的优惠券
  recommend: apiUrl+'promotion,recommend', //推荐优惠券
  promotionlist: apiUrl+'promotion,list', //优惠券列表
  promotionget: apiUrl+'promotion,get', //领取优惠券
  focusUrl: apiUrl+'teacher,focus', //关注教师
  focusSchool: apiUrl+'school,focus', //关注机构
  schoolwant: apiUrl+'school,want', //机构想学
  teacherwant: apiUrl+'teacher,want', //教师想学
  courserwant: apiUrl+'course,want', //课程想学
  teacherlike: apiUrl+'teacher,like', //教师点赞
  listCourse: apiUrl+'remark,listCourse', //课程评论
  listTeacher: apiUrl+'remark,listTeacher', //教师评论
  listSchool: apiUrl+'remark,listSchool', //机构评论
  userinfo: apiUrl+'user,info', //课程评论
  questionUrl: apiUrl+'question,get', //评测题库
  questionScore: apiUrl+'question,saveScore', //评测题库
  studentlist: apiUrl+'student,list', //学生列表
  courseall: apiUrl+'course,all', //课程搜索
  schoolall: apiUrl+'school,all', //机构搜索
  teacherall: apiUrl+'teacher,all', //机构搜索
  usersave: apiUrl+'user,saveInfo', //机构搜索
  likeCourse: apiUrl+'remark,likeCourse ', //点赞评论课程
  likeSchool: apiUrl+'remark,likeSchool ', //点赞评论机构
  likeTeacher: apiUrl+'remark,likeTeacher ', //点赞评论机构
  learnTeacher: apiUrl+'teacher,learned ', //教师已学
  learnSchool: apiUrl+'school,learned ', //机构已学
  learnCourse: apiUrl+'course,learned ', //课程已学
  questionresul: apiUrl+'question,result ', //测评结果
  showScore:apiUrl+'question,showScore', //测评得分
  schoolStatus:apiUrl+'school,status',//机构首页
  schoolTotal:apiUrl+'school,total',//单个机构统计信息
  teacherStatus:apiUrl+'teacher,status',//老师管理端
  teacherTotal:apiUrl+'teacher,total',//老师主页端
  instituActivity:apiUrl+'course,activity',//机构管理端活动
  schoolcourseList:apiUrl+'school,courseList',//机构主页端课程
  schoolteacherList:apiUrl+'school,teacherList',//机构主页端老师
  teachercourseList:apiUrl+'teacher,courseList',//老师主页课程
  messageList:apiUrl+'message,list',//消息
  coursebyTeacher:apiUrl+'course,byTeacher',//老師管理端活動
  coursebySchool:apiUrl+'course,bySchool',//機構主頁活動
  traceList:apiUrl+'trace,list',//追蹤
  visitorInfo: apiUrl+'visitor,info',//訪客詳情
  visitorList: apiUrl+'visitor,list',//訪客列表
  courseApp:apiUrl+'course,app',//预约课程
  appList:apiUrl+'app,list',//我的预约
  listStudent:apiUrl+'app,listStudent',//学生预约
  teacherMine:apiUrl+'teacher,mine',//*管理端我的
  saveDel: apiUrl+'teacher,savSchoolStatus',//我的 我的学校添加删除
  teacherschoolList:apiUrl+'teacher,schoolList',//我的机构列表

  wantList:apiUrl+'course,wantList',//课程想学
  wantTeacher:apiUrl+'teacher,wantList',//老师想学
  wantSchool:apiUrl+'school,wantList',//机构想学
  qrCreate:apiUrl+'qr,create',//二维码生成接口
  schoolAdminStatus:apiUrl+'school,adminStatus',//机构审核状态状态码
  teacherAdminStatus: apiUrl+'teacher,adminStatus',//教师审核状态
  goldlist: apiUrl+'gold,list',//金币
  scorelist: apiUrl+'score,list',//积分
  likeList: apiUrl+'teacher,likeList',//赞赏人
  qrcode:apiUrl+'qr,create', //二维码
  saveFormId:apiUrl+'message,saveFormId', //收集表单ID
  visitorEnter:apiUrl+'visitor,enter', //访客进入接口
  visitorLeave:apiUrl+'visitor,leave', //访客离开接口
  teacherSummary:apiUrl+'teacher,summary', //机构老师状态数量统计
  schoolLike:apiUrl+'school,like', //机构老师状态数量统计
  messageListUser:apiUrl+'message,listUser', //机构老师状态数量统计
  feeList:apiUrl+'fee,list', //续费套餐接口
  relatedCourse:apiUrl+'course,related', //课程推荐
  editCrowdfunding: apiUrl+'crowdfunding,edit', //添加保存众筹
  

  


}
module.exports = urls